package mianxiangduixiang.Test6.T4;

import java.util.Comparator;

/**
 * @Author JetZhang
 * @Date 2021/11/4
 */
public class MyComparatorForName implements Comparator<Book> {

    @Override
    public int compare(Book o1, Book o2) {
        return o1.getIsbn().compareTo(o2.getIsbn());
    }
}
